package com.abao.spring5;

import cn.hutool.core.lang.Console;
import org.springframework.stereotype.Component;

/**
 * @author abao
 * @date 2021-01-13 23:26
 */
@Component(value = "user")//value可以省略，注解功能等同于<bean id="user" class="..."></bean>
public class User {
    public void show(){
        Console.log("show方法被调用");
    }
}
